package principle.factory.abs.order;

import principle.factory.abs.simple.BJcheesePizza;
import principle.factory.abs.simple.BJgreekPizza;
import principle.factory.abs.simple.pizza;

public class BJFactory implements absFactory{
    @Override
    public pizza createPizza(String orderType) {
        pizza pizza = null;
        if(orderType.equals("greek")){
            return new BJgreekPizza();
        }else if(orderType.equals("cheese")){
            return new BJcheesePizza();
        }
        return pizza;
    }
}
